#ifndef SOCKET_IO_H
#define SOCKET_IO_H

#include <cstdlib>
class TcpConnect;

class SocketIO
{
    friend class TcpConnect;

private:
    int _fd;

public:
    SocketIO(int fd);
    int readn(char *buf, size_t size);
    int readLine(char *buf, size_t n);
    int writen(std::string, size_t size);
};

#endif